class Dict(dict):
    # 字典转化为对象

    def __getattr__(self, key):
        return self.get(key)

    def __setattr__(self, key, value):
        self[key] = value

